import request from '@/utils/request';

export async function fetchStores(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/getEntryStoreList', {
    method: 'POST',
    data: params,
  });
}

export async function fetchStoresDetails(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/getStoreInfo', {
    method: 'POST',
    data: params,
  });
}

export async function fetchStoresTypes(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreChildCat/storeCatList', {
    method: 'POST',
    data: params,
  });
}

export async function removePics(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/deleteAlbumImage', {
    method: 'POST',
    data: params,
  });
}

export async function storesUpdate(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/updateStoreInfo', {
    method: 'POST',
    data: params,
  });
}